<div class="filter">
    <div class="f1 item">
        <select data-am-selected>
        </select>
    </div>
    <div class="clear"></div>
</div>

<div class="rule-container"></div>

<script src="../public/all/js/pages/rule.js"></script>
<script>
    // 填充游戏
    var s = $(".f1 select");
    s.empty();
    var games = get_game_list(true);
    for (var i in games) {
        var g = games[i];
        s.append("<option value='" + g + "'>" + get_game_display_name(g) + "</option>");
    }
    s.val(game);
    s.trigger('changed.selected.amui');

    var refreshFunc = function() {
        RuleUI.game = $(".f1 select").val();
        RuleUI.container = $(".rule-container");
        RuleUI.bocai = true;
        RuleUI.init();
    }
    $(".f1 select").change(function() {
        refreshFunc();
    });
    refreshFunc();
</script>